//
//  UITextField+ClearBtn.m
//  IRun
//
//  Created by liangboshuo on 2017/11/21.
//  Copyright © 2017年 iningke. All rights reserved.
//

#import "UITextField+ClearBtn.h"




@implementation UITextField (ClearBtn)
-(instancetype)init{

    if(self=[super init]){
        self.clearButtonMode = UITextFieldViewModeWhileEditing;
        
    }
    return self;
}

-(void)awakeFromNib{
    [super awakeFromNib];
    self.clearButtonMode = UITextFieldViewModeWhileEditing;
}
@end
